package ThreadTest;


class MyRunnable implements Runnable{
    @Override
    public void run() {
        System.out.println("helllo TC");
    }
}

public class Demo3 {
    public static void main(String[] args) {
        Thread t = new Thread(new MyRunnable());//通过Runnable来描述任务的内容，再进一步的把任务交给Thread实例
        t.start();
    }
}
